#include "inputAnalyze.h"
int userinfoAnalyze(char *input, userinfo_t *userinfo)
{
    char *username = strtok(input, " ");
    if (username == NULL)
    {
        return 1;
    }
    memcpy(userinfo->username, username, strlen(username));
    char *password = strtok(NULL, " ");
    if (password == NULL)
    {
        return 1;
    }
    memcpy(userinfo->password, password, strlen(password));

    return 0;
}